const res = { "website": "https://www.innovationgloble.com/", "contact": "010-62589236" };

const { website } = res;

const sayHello = ({contact}) => {
    console.log("info:", contact);
}
const datas = [1 ,2,5,90];

const datas_plus_one = datas.map(d=>d+1);

console.log('datas_plus_one: ', datas_plus_one);

const sum = datas.reduce((pre, cur) => pre + cur,0);


console.log('sum: ', sum);


var arr = [];
console.log(`arr: ${arr}`);

// 展开 深度拷贝
// arr = [...datas];
// 同一个对象
// arr = datas;

console.log(`arr: ${arr}`);

// sayHello(res);
// console.log(website)

//不纯 函数
const sayName = username =>{
    const d = Date.now();
    console.log(`name: ${d}` + username);
}